package com.item.redis.type2.service;

import java.util.Set;

/**
 * @author zhang-rongyao
 * @Package com.item.redis.type2.service
 * @date 2021/10/15
 * @Version v1.0.0
 */
public interface RedisService {
    public String get(String key);

    public void delete(String key);

    public boolean setIfAbsent(String key, String value, int time);

    public Set<String> keys(String keyPattern);

    public long incr(String key);


    public long decr(String key);

    public void set(String key, String value);

    public boolean set(String key, long value, int timeInSecond);


    public Long getLong(String key);

    public Long getLongNoKeys(String key);

    public void srem(String key, String value);

}
